package file;

import java.io.File;
import java.io.IOException;

public class CreateFile {

	public static void main(String[] args) {
		File file = new File("E:/desktop/a"+File.separator
				+"b"+File.separator
				+"c"+File.separator
				+"d"+File.separator
				+"e"+File.separator
				+"Hello.txt");
		
		File fileParent = file.getParentFile();
		if(!fileParent.exists()){
			fileParent.mkdirs();
			
		}
		
		if(!file.exists()){
			try {
				file.createNewFile();
			} catch (IOException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}
			System.out.println("Create Success");
		}
	}

}
